<?php
require_once dirname(__FILE__) . '/../../../incls/php/dbutils.class.php';
require_once dirname(__FILE__) . '/../../../incls/php/miscutils.class.php';
$myPdo = DbUtils::createPdoInst();
$inst_id = MiscUtils::getParam('inid', 0);
$comp_track_id = MiscUtils::getParam('t', 0);
$cond_vals = new stdClass();
$cond_vals->c = 'track_id = :v1';
$cond_vals->v = array(':v1' => $comp_track_id);
$item = DbUtils::get($myPdo, TABLE_NAME_PREFIX_PLUGIN . 'comp', $cond_vals, NULL, NULL, NULL, NULL, NULL)->d[0];
?>
<!DOCTYPE html>
<html>
<head>

  <meta charset="utf-8">

  <style>
    .title {
      font: bold 32px 黑体;
      color: #ed2559;
    }
    .content {
     background: url(images/bg-footer.gif) no-repeat scroll 0 0 transparent;
     width: 480px;
    }
    .inner {
      background: url(images/bg-footer.gif) no-repeat scroll -490px 100% transparent;
      overflow: hidden;
      padding: 20px 0 0 60px;
      width: 400px;
      min-height: 340px;
    }
    p {
      margin: 0;
      padding: 0;
    }
    .img {
      cursor: pointer;
    }
  </style>

</head>
<body>

<div class="content">
  <div class="inner">
    <div class="title"><?php echo $item->title; ?></div>
    <div>&nbsp;</div>
    <div><?php echo $item->description; ?></div>
    <div><img class="img" src="images/btn.png" onclick="parent.location.href='http://<?php echo URL; ?>join.php?t=<?php echo $comp_track_id; ?>';"></img></div>
    <div>&nbsp;</div>
  </div>
</div>
</body>
</html>
